import { Component } from "react";
import withDelay from "../hocs/withDelay";
import withContext from "../hocs/withContext";

class Contact extends Component {
  render() {
    return (
      <div>
        <p>Contact - {this.props.extra.num}</p>
        <button onClick={this.props.extra.increment}>increment</button>
      </div>
    );
  }
}

export default withContext(withDelay(Contact, 3000));
